home *** CD-ROM | disk | FTP | other *** search
- Path: mother.usf.edu!news
- From: Chris Frenck <cfrenck@soleil.acomp.usf.edu>
- Newsgroups: comp.lang.c
- Subject: Please HELP with struct and linked list
- Date: Wed, 03 Apr 1996 18:40:10 -0500
- Organization: University of South Florida
- Message-ID: <31630C5A.53E6@soleil.acomp.usf.edu>
- NNTP-Posting-Host: ppp115.cfr.usf.edu
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 3.0B2 (Win95; I)
-
- Could anyone PLEASE help me. I am having a great deal of difficulty
- understanding the concepts of the following.
-
- struct Class
- {
- char prefix;
- char number;
- char instructor;
- char grade;
- int credits;
- struct Class *next; /*???*/
- };
-
- struct student
- {
- char fname;
- char lname;
- struct Record *next *previous;
- struct Class *next_class; /*???*/
- };
-
- The two main areas I am having extreme difficulties in are forming a linked
- list of students, sorting the list alphabetically by last name. I also need to
- add more than one class per student. If anyone could help me get over this
- hurdle I would be very happy.
-
- I am having problems with the syntax of just how to do it. Does anyone have
- an example of a program that does something similar? Or could someone give me
- a "skeleton" of how to do it????
-
- I have to do many other things with this program, but cannot continue until I
- figure this problem out.
-
- PLEASE help an honest, hard-working college student out!
-
- Sincerely,
-
- Chris Frenck
- cfrenck@soleil.acomp.usf.edu
-